package com.laiat.logservice;

import android.os.Parcel;
import android.os.Parcelable;

public class Message implements Parcelable {

	private String tag;
	private String text;
	
	public Message(Parcel in) {
		tag = in.readString();
		text = in.readString();
	}
	
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel out, int flags) {
		out.writeString(tag);
		out.writeString(text);		
	}
	
	public static final Parcelable.Creator<Message> CREATOR =
		new Parcelable.Creator<Message>() {
			@Override
			public Message createFromParcel(Parcel source) {
				return new Message(source);
			}

			@Override
			public Message[] newArray(int size) {
				return new Message[size];
			}
		};

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	
}
